package com.imooc.bilibili.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


import java.util.Date;

/**
 * 用户账号表
 *
 * @author gcq
 * @Create 2022-05-21
 */
@Data
@TableName(value =  "t_user")
public class User {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String phone;
    private String email;
    private String password;
    /**
     * 盐值
     */
    private String salt;
    @TableField(value = "createTime")
    private Date createTime;
    @TableField(value = "updateTime")
    private Date UpdateTime;
    /**
     * 用户信息
     */
    @TableField(exist = false)
    private UserInfo userInfo;
}